﻿using com.nm.Attributes;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseAPI.model
{
    #region 岗位
    public class PostData
    {
    }
    #endregion

    #region 岗位数据
    public class ModifyPostData : CreatePostData
    {
        [ParamDescription("PostID")]
        public int PostID { get; set; }
    }

    public class CreatePostData
    {
        [ParamDescription("岗位名称")]
        public string PostName { get; set; }

        [ParamDescription("所属部门ID")]
        public int DeptID { get; set; }

        [ParamDescription("是否有效")]
        public bool IsEffective { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Include)]
        [ParamDescription("是否删除")]
        public bool IsRemove { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Include)]
        [ParamDescription("备注")]
        public string Memo { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Include)]
        [ParamDescription("创建者")]
        public string Creator { get; set; }

        [JsonProperty(NullValueHandling = NullValueHandling.Include)]
        [ParamDescription("创建时间")]
        public DateTime CreateDate { get; set; }
    }
    #endregion
}
